package com.yserp.project.erp.basic.customer.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import com.yserp.project.erp.common.anno.MybatisLikeSearch;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 客户资料对象 erp_basis_customer
 * 
 * @author yserp
 * @date 2022-06-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("erp_basis_customer")
public class BasisCustomer extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 客户id */
    private Long id;

    /** 客户编码 */
    @Excel(name = "客户编码")
    @MybatisLikeSearch
    private String customerCode;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @MybatisLikeSearch
    private String customerName;

    /** 营业执照(税号) */
    @Excel(name = "营业执照(税号)")
    private String businessLicense;

    /** 联系人 */
    @Excel(name = "联系人")
    @MybatisLikeSearch
    private String contactPerson;

    /** 电话 */
    @Excel(name = "电话")
    @MybatisLikeSearch
    private String telephone;

    /** 手机 */
    @Excel(name = "手机")
    private String mobilePhone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 级别(关联字典) */
    @Excel(name = "级别",readConverterExp = "1=一级,2=二级,3=三级")
    private String customerLevel;

    /** 删除标志（0代表存在 1代表删除） */
    @TableLogic
    private String delFlag;

    /** 部门ID */
    //@Excel(name = "部门ID")
    private Long deptId;


}
